package main

func missingNumber(nums []int) int {
	miss := len(nums)
	for i := 0; i < len(nums); i++ {
		miss = miss + i - nums[i]
	}
	return miss
}

func main() {

}
